package com.example.cinema.controller;


import com.example.cinema.entity.Still;
import com.example.cinema.mapper.StillMapper;
import com.example.cinema.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yc138
 * @since 2024-08-26
 */
@RestController
@RequestMapping("/still")
public class StillController {
    @Autowired
    StillMapper stillMapper;

    @RequestMapping("getFiveStill")
    Result getFiveStill(){
        List<Still> fiveMovie = stillMapper.getFiveStill();
        System.out.println("fiveMovie = " + fiveMovie);
        return new Result(1, "已查询成功", fiveMovie);
    }
}

